package _9991ShuJuFangWenDuiXiang;


import _9991ShuJuFangWenDuiXiang.impl.StudentDaoImpl;

import java.util.List;

/**
 * @Test: 数据访问对象模式 测试类
 * @author: ZBoHang
 * @time: 2021/9/18 10:51
 */
public class Test {
    public static void main(String[] args) {
        StudentDao studentDao = new StudentDaoImpl();

        List<Student> students = studentDao.getAllStudent();
        students.forEach(System.out::print);

        Student student = students.get(0);
        student.setName("二狗");
        studentDao.updateStudent(student);

    }
}
